<html>
	<head>
	<!-- Latest compiled and minified CSS -->
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">

	<!-- Optional theme -->
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap-theme.min.css">

	<!-- Latest compiled and minified JavaScript -->
	<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
	<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
	<script type="text/javascript">
	function printDiv(divName) {
    var printContents = document.getElementById(divName).innerHTML;
    var originalContents = document.body.innerHTML;
    document.body.innerHTML = printContents;
    window.print();
    document.body.innerHTML = originalContents;
	}
</script>
	</head>
	<title>Print This Page</title>
	<body>
	<div id="printableArea">
		<table class="table table-bordered">
			<tr>
				<td>Pemilik</td>
				<td> : </td>
				<td>PT CITRA WASPPHUTOWA</td>
			</tr>
			<tr>
				<td>Konsultan Supervisi</td>
				<td> : </td>
				<td>PT MULTI PHI BETA JO, PT VIRAMA KARYA (Persero), PT INDOTEK KONSULTAN UTAMA</td>
			</tr>
			<tr>
				<td>Kontraktor</td>
				<td> : </td>
				<td>PT WASKITA, PT PEMBANGUNAN PERUMAHAN, PT HUTAMA KARYA KSO</td>
			</tr>
		</table>
		<p align="center"><font size="6">LAPORAN HARIAN KONSULTAN</font></p>
		<table class="table table-bordered">
			<thead>
				<tr>
					<th colspan="11">Bidang Pekerjaan : 0202 BORE PILE CUACA:CERAH</th>
				</tr>
				<tr>
					<th rowspan="2" align="center" width="10%">No</th>
					<th rowspan="2" align="center" width="10%">Kode Pembayaran</th>
					<th rowspan="2" align="center">Deskripsi</th>
					<th rowspan="2" align="center">Unit</th>
					<th rowspan="2" align="center">Volume</th>
					<th colspan="2" align="center">Station</th>
					<th colspan="2" align="center">Mulai</th>
					<th colspan="2" align="center">Selesai</th>		
				</tr>
				<tr>
					<th align="center">Station</th>
					<th align="center">Station</th>
					<th align="center">Tanggal</th>
					<th align="center">Jam</th>
					<th align="center">Tanggal</th>
					<th align="center">Jam</th>
				</tr>
				
			</thead>
			
            <tbody>
			<?php $i=1;?>
			<?php foreach($laporanHarianDetail as $row):?>
				<tr>
					<td align="center" width="10%"><?=$i?></td>
					<td align="center" width="10%"><?=$row['pay_item']?></td>
					<td align="center" width="25%"><?=$row['uraian']?></td>
					<td align="center" width="10%"><?=$row['satuan']?></td>
					<td align="center" width="10%"><?=$row['volume']?></td>
					<td align="center" width="10%"><?=$row['awal']?></td>
					<td align="center" width="10%"><?=$row['akhir']?></td>
					<td align="center" width="10%"><?=date('d/m/Y',strtotime($row['tanggal_mulai']))?></td>
					<td align="center" width="10%"><?=$row['jam_mulai']?></td>
					<td align="center" width="10%"><?=date('d/m/Y',strtotime($row['tanggal_selesai']))?></td>
					<td align="center" width="10%"><?=$row['jam_selesai']?></td>
				</tr>
			<?php $i++;endforeach; ?>
            </tbody>
		</table>
		</div>
		<br/>
<br/>
<br/>
<input class="btn btn-success" type="button" onclick="printDiv('printableArea')" value="Print Invoice" />
	</body>
</html>